<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.6.0.js" type="text/javascript"></script>
		<style type="text/css">
			div {
				width: 200px;
				height: 200px;
				background-color: orange;
			}
		</style>
	</head>
	<body>
		<div></div>
		<button id="down">下滑</button>
		<button id="up">上滑</button>
		<button id="toggle">切换</button>
		<script type="text/javascript">
			$('#down').click(function() {
				$('div').slideDown(2000)
			})

			$('#up').click(function() {
				$('div').slideUp(2000)
			})

			$('#toggle').click(function() {
				$('div').slideToggle(2000)
			})
		</script>
	</body>
</html>
